home *** CD-ROM | disk | FTP | other *** search
/ Mac Format 1995 June / MacFormat 25.iso / Shareware City / Developers / OutOfPhase1.1 Source / OutOfPhase Folder / GlobalWindowMenuList.h < prev    next >
Text File  |  1994-03-27  |  1KB  |  39 lines

  1. /* GlobalWindowMenuList.h */
  2.  
  3. #ifndef Included_GlobalWindowMenuList_h
  4. #define Included_GlobalWindowMenuList_h
  5.  
  6. /* GlobalWindowMenuList module depends on */
  7. /* MiscInfo.h */
  8. /* Audit */
  9. /* Debug */
  10. /* Definitions */
  11. /* Array */
  12. /* Memory */
  13. /* Menus */
  14.  
  15. /* forwards */
  16. struct MenuItemType;
  17.  
  18. /* initialize the internal structures for the list */
  19. MyBoolean                    InitializeGlobalWindowMenuList(void);
  20.  
  21. /* dispose of the internal structures for the list */
  22. void                            ShutdownGlobalWindowMenuList(void);
  23.  
  24. /* add a new menu item to the window list */
  25. MyBoolean                    RegisterWindowMenuItem(struct MenuItemType* Item,
  26.                                         void (*RaiseFunction)(void* Refcon), void* Refcon);
  27.  
  28. /* remove a menu item from the window list */
  29. void                            DeregisterWindowMenuItem(struct MenuItemType* Item);
  30.  
  31. /* dispatch a window menu item.  If it wasn't one, then return False, otherwise */
  32. /* raise the appropriate window and return True */
  33. MyBoolean                    DispatchWindowMenuItem(struct MenuItemType* Item);
  34.  
  35. /* enable the items in the window menu */
  36. void                            WindowMenuEnableItems(void);
  37.  
  38. #endif
  39.